package com.ruoyi.durian.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单模块-订单详情表
 * @TableName ll_order_info
 */
@TableName(value ="ll_order_info")
public class LlOrderInfo implements Serializable {
    /**
     * 订单详情id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 司机id
     */
    private Integer driverId;

    /**
     * 乘客id
     */
    private Integer userId;

    /**
     * 车id
     */
    private Integer carId;

    /**
     * 是否是本人
0 是
1 否
     */
    private Integer isMe;

    /**
     * 朋友id
     */
    private Integer friendId;

    /**
     * 满意度
     */
    private Integer allRight;

    /**
     * 司机服务
     */
    private Integer service;

    /**
     * 0 前等待（等待车辆接单）
1 就绪（司机接单之后）
2 后等待（等待司机到达乘客位置）
3 进行中（乘客上车）
4 行程结束（到达目的地之后）
   |   （ 过渡）
  乂
5 待支付状态（到达目的地之后）
6 支付完成 （付完钱之后）
9 取消订单
     */
    private Integer status;

    /**
     * 路径
     */
    private String route;

    /**
     * 订单总金额
     */
    private BigDecimal allPrice;

    /**
     * 起步费

     */
    private BigDecimal startPrice;

    /**
     * 远途费
     */
    private BigDecimal farPrice;

    /**
     * 优惠券扣减
     */
    private BigDecimal minusPrice;

    /**
     *  开票状态(已开0;未开1)
     */
    private Integer invoiceStatus;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否删除
     */
    @TableLogic(value = "0", delval = "1")
    private Integer isDelete;

    /**
     * 起点名称
     */
    @TableField(exist = false)
    private String bname;
    /**
     * 终点名称
     */
    @TableField(exist = false)
    private String fname;

    /**
     * 车辆名称
     */
    @TableField(exist = false)
    private String cname;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    /**
     * 订单详情id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 订单详情id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 订单号
     */
    public String getOrderNo() {
        return orderNo;
    }

    /**
     * 订单号
     */
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * 订单id
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 订单id
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 司机id
     */
    public Integer getDriverId() {
        return driverId;
    }

    /**
     * 司机id
     */
    public void setDriverId(Integer driverId) {
        this.driverId = driverId;
    }

    /**
     * 乘客id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 乘客id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 车id
     */
    public Integer getCarId() {
        return carId;
    }

    /**
     * 车id
     */
    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    /**
     * 是否是本人
0 是
1 否
     */
    public Integer getIsMe() {
        return isMe;
    }

    /**
     * 是否是本人
0 是
1 否
     */
    public void setIsMe(Integer isMe) {
        this.isMe = isMe;
    }

    /**
     * 朋友id
     */
    public Integer getFriendId() {
        return friendId;
    }

    /**
     * 朋友id
     */
    public void setFriendId(Integer friendId) {
        this.friendId = friendId;
    }

    /**
     * 满意度
     */
    public Integer getAllRight() {
        return allRight;
    }

    /**
     * 满意度
     */
    public void setAllRight(Integer allRight) {
        this.allRight = allRight;
    }

    /**
     * 司机服务
     */
    public Integer getService() {
        return service;
    }

    /**
     * 司机服务
     */
    public void setService(Integer service) {
        this.service = service;
    }

    /**
     * 0 前等待（等待车辆接单）
1 就绪（司机接单之后）
2 后等待（等待司机到达乘客位置）
3 进行中（乘客上车）
4 行程结束（到达目的地之后）
   |   （ 过渡）
  乂
5 待支付状态（到达目的地之后）
6 支付完成 （付完钱之后）
9 取消订单
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 0 前等待（等待车辆接单）
1 就绪（司机接单之后）
2 后等待（等待司机到达乘客位置）
3 进行中（乘客上车）
4 行程结束（到达目的地之后）
   |   （ 过渡）
  乂
5 待支付状态（到达目的地之后）
6 支付完成 （付完钱之后）
9 取消订单
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 路径
     */
    public String getRoute() {
        return route;
    }

    /**
     * 路径
     */
    public void setRoute(String route) {
        this.route = route;
    }

    /**
     * 订单总金额
     */
    public BigDecimal getAllPrice() {
        return allPrice;
    }

    /**
     * 订单总金额
     */
    public void setAllPrice(BigDecimal allPrice) {
        this.allPrice = allPrice;
    }

    /**
     * 起步费

     */
    public BigDecimal getStartPrice() {
        return startPrice;
    }

    /**
     * 起步费

     */
    public void setStartPrice(BigDecimal startPrice) {
        this.startPrice = startPrice;
    }

    /**
     * 远途费
     */
    public BigDecimal getFarPrice() {
        return farPrice;
    }

    /**
     * 远途费
     */
    public void setFarPrice(BigDecimal farPrice) {
        this.farPrice = farPrice;
    }

    /**
     * 优惠券扣减
     */
    public BigDecimal getMinusPrice() {
        return minusPrice;
    }

    /**
     * 优惠券扣减
     */
    public void setMinusPrice(BigDecimal minusPrice) {
        this.minusPrice = minusPrice;
    }

    /**
     *  开票状态(已开0;未开1)
     */
    public Integer getInvoiceStatus() {
        return invoiceStatus;
    }

    /**
     *  开票状态(已开0;未开1)
     */
    public void setInvoiceStatus(Integer invoiceStatus) {
        this.invoiceStatus = invoiceStatus;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 是否删除
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 是否删除
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LlOrderInfo other = (LlOrderInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getDriverId() == null ? other.getDriverId() == null : this.getDriverId().equals(other.getDriverId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getCarId() == null ? other.getCarId() == null : this.getCarId().equals(other.getCarId()))
            && (this.getIsMe() == null ? other.getIsMe() == null : this.getIsMe().equals(other.getIsMe()))
            && (this.getFriendId() == null ? other.getFriendId() == null : this.getFriendId().equals(other.getFriendId()))
            && (this.getAllRight() == null ? other.getAllRight() == null : this.getAllRight().equals(other.getAllRight()))
            && (this.getService() == null ? other.getService() == null : this.getService().equals(other.getService()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getRoute() == null ? other.getRoute() == null : this.getRoute().equals(other.getRoute()))
            && (this.getAllPrice() == null ? other.getAllPrice() == null : this.getAllPrice().equals(other.getAllPrice()))
            && (this.getStartPrice() == null ? other.getStartPrice() == null : this.getStartPrice().equals(other.getStartPrice()))
            && (this.getFarPrice() == null ? other.getFarPrice() == null : this.getFarPrice().equals(other.getFarPrice()))
            && (this.getMinusPrice() == null ? other.getMinusPrice() == null : this.getMinusPrice().equals(other.getMinusPrice()))
            && (this.getInvoiceStatus() == null ? other.getInvoiceStatus() == null : this.getInvoiceStatus().equals(other.getInvoiceStatus()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getDriverId() == null) ? 0 : getDriverId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getCarId() == null) ? 0 : getCarId().hashCode());
        result = prime * result + ((getIsMe() == null) ? 0 : getIsMe().hashCode());
        result = prime * result + ((getFriendId() == null) ? 0 : getFriendId().hashCode());
        result = prime * result + ((getAllRight() == null) ? 0 : getAllRight().hashCode());
        result = prime * result + ((getService() == null) ? 0 : getService().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRoute() == null) ? 0 : getRoute().hashCode());
        result = prime * result + ((getAllPrice() == null) ? 0 : getAllPrice().hashCode());
        result = prime * result + ((getStartPrice() == null) ? 0 : getStartPrice().hashCode());
        result = prime * result + ((getFarPrice() == null) ? 0 : getFarPrice().hashCode());
        result = prime * result + ((getMinusPrice() == null) ? 0 : getMinusPrice().hashCode());
        result = prime * result + ((getInvoiceStatus() == null) ? 0 : getInvoiceStatus().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", orderId=").append(orderId);
        sb.append(", driverId=").append(driverId);
        sb.append(", userId=").append(userId);
        sb.append(", carId=").append(carId);
        sb.append(", isMe=").append(isMe);
        sb.append(", friendId=").append(friendId);
        sb.append(", allRight=").append(allRight);
        sb.append(", service=").append(service);
        sb.append(", status=").append(status);
        sb.append(", route=").append(route);
        sb.append(", allPrice=").append(allPrice);
        sb.append(", startPrice=").append(startPrice);
        sb.append(", farPrice=").append(farPrice);
        sb.append(", minusPrice=").append(minusPrice);
        sb.append(", invoiceStatus=").append(invoiceStatus);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
